//
// Created by 张跃译 on 2025/1/10.
//
#include "iostream"
#include "include/sequential_list.h"
//顺序表题目
void SequentialListTest(){
    SequentialList mylist;
    MySequentialList listManager;
    listManager.initSequentialList(&mylist,10);
    for (int i = 0; i < 10; ++i) {
        listManager.insert(&mylist,i,i*10);
    }
    cout<<"Size: "<<listManager.size(&mylist)<< endl;
    cout<<"Is empty"<<listManager.isEmpty(&mylist);

    for (int i = 0; i < listManager.size(&mylist); ++i) {
       cout<<listManager.getElement(&mylist,i)<<"  ";
    }
    cout<<endl;

}

void indexPort(){
    SequentialListTest();

}
